package com.sgb.kjwl.view.ui.adapter.enterprise;

import android.content.Context;
import android.widget.TextView;

import com.sgb.kjwl.BR;
import com.sgb.kjwl.R;
import com.sgb.kjwl.model.entity.enterprise.ServiceProjectClassEntity;
import com.sgb.kjwl.model.entity.user.SkuItemAttrEntity;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

public class ServiceProChildAdapter extends BaseRecycleAdapter<ServiceProjectClassEntity.ChildBean> {
    public ServiceProChildAdapter(Context context, List<ServiceProjectClassEntity.ChildBean> datas) {
        super(context, R.layout.item_service_pro_sku_child, datas);

    }

    @Override
    public void convert(ItemViewHolder holder, final ServiceProjectClassEntity.ChildBean entity) {
        holder.setBinding(BR.viewModel, entity);
        TextView tv_category_item = holder.getItem().findViewById(R.id.tv_category_item);
        /*if (entity.isEnabled() == false) {
            tv_category_item.setEnabled(false);
            tv_category_item.setTextColor(context.getResources().getColor(R.color.color_main));
        }*/
    }

}
